package com.cai.primeton.service;

import com.cai.primeton.entity.PRole;
import com.cai.primeton.repository.RoleRepo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/7/1 13 : 54
 * @package：com.cai.primeton.service
 */
@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    private RoleRepo roleRepo;
    @Override
    public PRole findById(Integer id) {
        return roleRepo.getById(id);
    }
}
